package com.yu.mall.entity;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;

import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Id;
import lombok.Data;

@Data
@Table(name="shopping_cart")
public class ShoppingCart {
    /**
     * 
     */
    @Id
    @ApiModelProperty(value = "id(新增时不用传，修改删除时必传)")
    private String id;
    
    @ApiModelProperty(value = "openid")
    private String openid;

    /**
     * sku名称
     */
    @ApiModelProperty(value = "sku名称")
    private String skuname;

    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    private String name;

    /**
     * 销售价
     */
    @ApiModelProperty(value = "销售价")
    private BigDecimal jdPrice;

    /**
     * 商品主图
     */
    @ApiModelProperty(value = "商品主图")
    private String imagePath;

    /**
     * sku_id
     */
    @ApiModelProperty(value = "sku_id")
    private String skuId;

    /**
     * 商品数量
     */
    @ApiModelProperty(value = "商品数量")
    private Integer num;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "忽略")
    private Date createDatetime;

    /**
     * 状态（备用字段）
     */
    @ApiModelProperty(value = "忽略")
    private String type;
}